<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018/5/3
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
    .keywords {
        width: 250px;
        font-family: '微软雅黑', sans-serif, serif;
    }
    .span_h{
        background-color: #eff0f1;display: block;height: 30px;
        font-size: 16px;
        line-height:30px;
    }

</style>
<script>
    $(function(){
        window.setTimeout(function(){
            $(".gridCol").removeAttr("title");
        },500);
    });

</script>

<div class="pageHeader">
    <c:if test="${cInfo.roletype=='1'}">
        <form rel="pageForm" onsubmit="return navTabSearch(this);" action="<c:url value='/danger/ptcsbz/ptcsbztj/1'/>" method="post">
            <div class="searchBar">
                <table class="searchContent">
                    <tr>
                        <td class="dateRange">
                            上传时间：
                            <input type="text" value="<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>" readonly="readonly"
                                   class="date" name="start" dateFmt="yyyy-MM-dd" style="width: 100px;" id="start4">
                            <span class="limit">-</span>
                            <input type="text" value="<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>" readonly="readonly"
                                   class="date" name="end"  dateFmt="yyyy-MM-dd" style="width: 100px;" id="end4">
                        </td>
                        <td>
                            <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            <div class="buttonActive"><div class="buttonContent"><button type="button" onclick="exportPtcsbzForm()"> 导出</button></div></div>
                        </td>
                    </tr>
                </table>
            </div>
        </form>
    </c:if>
</div>
<div class="pageContent">
    <table class="table"  width="100%" layoutH="86">
        <thead>

        <tr>
            <th width="120" align="center" >序号</th>
            <th width="120" align="center" >社区</th>
            <th width="120" align="center"  title="灭火器">灭火器</th>
            <th width="120" align="center" title="应急照明灯">应急照明灯</th>
            <th width="120" align="center" title="简易喷淋">简易喷淋</th>
            <th width="120" align="center" title="独立烟感报警器">独立烟感报警器</th>
            <th width="120" align="center" title="电气火灾监控系统">电气火灾监控系统</th>
            <th width="120" align="center" title="可燃气体紧急切断装置">可燃气体紧急切断装置</th>
            <th width="120" align="center" title="电动车设施个数">电动车设施个数</th>
            <th width="120" align="center" title="电动车设施面积">电动车设施面积</th>
            <th width="120" align="center" title="电动车停放数量">电动车停放数量</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="list" varStatus="state" >
            <tr>
                <td>${state.count+(pager.pageNum-1)*pager.numPerPage}</td>
                <td >
                        ${list.name}
                </td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&sqid=${list.id}&pcsid=${timeChoose.data}&column=mhq"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" title="灭火器" rel="page_info1_detail1">${list.mhq}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&sqid=${list.id}&pcsid=${timeChoose.data}&column=yjzmd"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" title="应急照明灯" rel="page_info1_detail1">${list.yjzmd}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&sqid=${list.id}&pcsid=${timeChoose.data}&column=jypl"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" title="简易喷淋" rel="page_info1_detail1">${list.jypl}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&sqid=${list.id}&pcsid=${timeChoose.data}&column=dlygbjq"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" title="独立烟感报警器" rel="page_info1_detail1">${list.dlygbjq}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&sqid=${list.id}&pcsid=${timeChoose.data}&column=dqhzjkxt"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" title="电气火灾监控系统" rel="page_info1_detail1">${list.dqhzjkxt}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&sqid=${list.id}&pcsid=${timeChoose.data}&column=krqtjjqdzz"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" title="可燃气体紧急切断装置" rel="page_info1_detail1">${list.krqtjjqdzz}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&sqid=${list.id}&pcsid=${timeChoose.data}&column=ddctfl"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" title="电动车设施个数" rel="page_info1_detail1">${list.ddctfl}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&sqid=${list.id}&pcsid=${timeChoose.data}&column=ddcmj"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" title="电动车设施面积" rel="page_info1_detail1">${list.ddcmj}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/ptcsbz/ptcsbztj/detail/1'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&sqid=${list.id}&pcsid=${timeChoose.data}&column=ddcgs"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" title="电动车停放数量" rel="page_info1_detail1">${list.ddcgs}</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
<script type="text/javascript">
    function exportPtcsbzForm(){
        var url = "<c:url value='/danger/ptcsbz/ptcsbzExport/1'/>?start="+$("#start4").val()+"&end="+$("#end4").val();
        window.open(url,"_blank");
    }
</script>
